<!-- 注册组件 -->
<template>
  <div class="register">
    <div class="register-content">
      <div class="register-nav">个人中心</div>
      <div class="register-items">
        <div class="register-item">
          <i class="iconfont icon-wodedangxuan"></i>
          <span>Bob</span>
        </div>
        <div class="register-item">
          <i class="iconfont icon-tuihuanhuo"></i>
          <span>15.00</span>
        </div>
        <div class="register-item">
          <i class="iconfont icon-dkw_xiaoxi"></i>
          <span>18736067092</span>
        </div>
        <div class="register-item">
          <i class="iconfont icon-kefu1"></i>
          <span>lys@feicui.net</span>
        </div>
      </div>
      <button @click="tologin">退出</button>
    </div>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
  //import引入的组件需要注入到components对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {};
  },

  methods: {
      tologin(){
          this.$router.push('/login');
      }
  },
};
</script>
<style lang="less">
.register-content {
  width: 100%;
  .register-nav {
    height: 4.4rem;
    background: #ccc;
    text-align: center;
    line-height: 4.4rem;
    margin-bottom: 2rem;
  }
  .register-items {
    width: 100%;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    width: calc(100% - 1rem);
    line-height: 3rem;
    .register-item {
      width: 100%;
      height: 3rem;
      line-height: 3rem;
      border: 1px solid #ccc;
      i {
        font-size: 2rem;
        margin-left: 1rem;
      }
      span {
        margin: 0.5rem;
      }
    }
  }
  button {
    margin-top: 2rem;
    width: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
    width: calc(100% - 2rem);
    height: 3rem;
    background: blue;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
  }
}
</style>